{% extends "base.html" %}
{%block content%}
    <table class="hover pointer">
        <thead>
        <tr>
            <th>ID</th>
            <th>所属机房</th>
            <th>操作系统</th>
            <th>项目</th>
            <th>管理员</th>
            <th>绑定IP</th>
            <th>说明备注</th>
            <th>类型</th>
            <th>操作</th>
        </tr>
        </thead>
      {% for info in infos %}
      <tr>
            <td>{{info.id}}</td>
            <td>{{info.place}}</td>
            <td>{{info.system}}</td>
            <td>{{info.project}}</td>
            <td>{{info.sa}}</td>
            <td>
            {% for ip in info.ip %}
            <a href="enterminal:/{{ip}}/{{info.terminal}}/{{info.port}}/{{info.loginstr}}">{{ip}}</a><br/>
            {% endfor %}
            </td>
            <td>{{info.comment}}</td>
            <td>{{info.type}}</td>
            <td>
                <a href="/edit_servicer?id={{info.id}}">编辑</a>
                <a onclick="return confirm('是否要删除服务器?');" href="/delete_servicer?id={{info.id}}">删除</a>
            </td>
      </tr>
        {%endfor%}

    </table>
{%endblock%}